#ifndef DATAFILEEXCEPTION_H_
#define DATAFILEEXCEPTION_H_

#include <exception>
#include <string>

namespace PComunicator
{



class DataFileException : public std::exception
{
	public:
		DataFileException(std::string theFileName)
		{
			myMessage = "The given file " + theFileName + " is corupt or demaged in any other way.";
		}

		~DataFileException() throw()
		{}

		virtual const char* what() const throw()
		{
			return myMessage.c_str();
		}

	private:
		std::string myMessage;
};

}
#endif
